package com.bz.sunmipay.activity;

import android.os.Bundle;

import com.baizhi.baseapp.activity.BaseActivity;
import com.bz.sunmipay.R;
import com.bz.sunmipay.utils.IntentUtils;

/**
 * 支付失败页
 * <p>
 * Created by Administrator on 2019/11/24.
 */
public class PaymentFailActivity extends BaseActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentLayout(R.layout.activity_fail);
        setLeftContentIcon(R.mipmap.back);
        setRightContentIcon(R.mipmap.home);
        setCenterText("PAYMENT");
    }

    @Override
    protected void handleClickEvent(int event) {
        super.handleClickEvent(event);
        if (event == RIGHT_BUTTON) {
            IntentUtils.goToHome(this);
        }
    }
}
